package com.itheima.Jiuye13;

public class MaipiaoDemo {
    public static void main(String[] args) {
        MaipiaoTest mp = new MaipiaoTest();
        Thread thread = new Thread(mp);
        Thread thread1 = new Thread(mp);
        Thread thread2 = new Thread(mp);

        thread.setName("窗口1");
        thread1.setName("窗口2");
        thread2.setName("窗口3");

        thread.start();
        thread1.start();
        thread2.start();
    }
}
